<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" min="0" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Typestr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-typeStr" class="form-control" name="row[typeStr]" type="text" value="{$row.typeStr|htmlentities}">-->
            <input id="c-typeStr" min="0" data-rule="required" data-source="xlzxinfo/type/index"  data-field="name"  class="form-control selectpage" name="row[typeId]" type="text" value="{$row.typeId|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isexp')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            {foreach name="isExpList" item="vo"}
            <label for="row[isExp]-{$key}"><input id="row[isExp]-{$key}" name="row[isExp]" type="radio" value="{$key}" {in name="key" value="$row.isExp"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tags')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-tags" class="form-control" data-role="tagsinput" name="row[tags]" type="text" value="{$row.tags|htmlentities}">-->
            <input id="c-tags" data-rule="required" data-source="xlzxinfo/tags/index" data-field="name" data-multiple="true" class="form-control selectpage" name="row[tags]" type="text" value="{$row.tags|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('资质证书')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-certificate" data-rule="required" data-source="xlzxinfo/certificate/index" data-field="name" data-multiple="true" class="form-control selectpage" name="row[certificate]" type="text" value="{$row.certificate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Full_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-full_name" class="form-control" name="row[full_name]" type="text" value="{$row.full_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="genderList" item="vo"}
            <label for="row[gender]-{$key}"><input id="row[gender]-{$key}" name="row[gender]" type="radio" value="{$key}" {in name="key" value="$row.gender"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_number" class="form-control" name="row[id_number]" type="text" value="{$row.id_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Certificate_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-certificate_image" class="form-control" size="50" name="row[certificate_image]" type="text" value="{$row.certificate_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-certificate_image" class="btn btn-danger faupload" data-input-id="c-certificate_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-certificate_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-certificate_image" class="btn btn-primary fachoose" data-input-id="c-certificate_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-certificate_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-certificate_image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('身份证')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-id_number_pic_zheng" class="form-control" size="50" name="row[id_number_pic_zheng]" type="text" value="{$row.id_number_pic_zheng|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-id_number_pic_zheng" class="btn btn-danger faupload" data-input-id="c-id_number_pic_zheng" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-id_number_pic_zheng"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-id_number_pic_zheng" class="btn btn-primary fachoose" data-input-id="c-id_number_pic_zheng" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-id_number_pic_zheng"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-id_number_pic_zheng"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('身份证')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-id_number_pic_fan" class="form-control" size="50" name="row[id_number_pic_fan]" type="text" value="{$row.id_number_pic_fan|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-id_number_pic_fan" class="btn btn-danger faupload" data-input-id="c-id_number_pic_fan" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-id_number_pic_fan"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-id_number_pic_fan" class="btn btn-primary fachoose" data-input-id="c-id_number_pic_fan" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-id_number_pic_fan"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-id_number_pic_fan"></ul>
        </div>
    </div>


    <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('地区')}:</label>
         <div class="col-xs-12 col-sm-8">
             <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
                 <select class="province form-control" name="row[province]" data-url="ajax/area">
                     <option value="{$row.province|htmlentities}"></option>
                 </select>
                 <select class="city form-control" name="row[city]" data-query-name="province" data-url="ajax/area">
                     <option value="{$row.city|htmlentities}"></option>
                 </select>
             </div>
         </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('从业年限')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-work_year" class="form-control" name="row[work_year]" type="number" value="{$row.work_year|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('个人介绍')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-des" class="form-control" rows="5" name="row[des]" cols="50" data-rule="required">{$row.des|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('从业经历')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-experience" class="form-control" rows="5" name="row[experience]" cols="50" data-rule="required">{$row.experience|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('下单引导语')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-introduce" class="form-control" rows="5" name="row[introduce]" cols="50" data-rule="required">{$row.introduce|htmlentities}</textarea>
            <p style="color:red;"> 用户首次打开提示</p>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('下单引导语')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-content" class="form-control editor" rows="5" name="row[introduce]" cols="50">{$row.introduce|htmlentities}</textarea>-->
<!--            <p style="color:red;"> 用户首次打开提示</p>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('语音咨询<br/>15分钟价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-call_price_15" class="form-control" name="row[call_price_15]" type="number" value="{$row.call_price_15|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('语音咨询价30分钟')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-call_price_30" class="form-control" name="row[call_price_30]" type="number" value="{$row.call_price_30|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('语音咨询价60分钟')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-call_price_60" class="form-control" name="row[call_price_60]" type="number" value="{$row.call_price_60|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('文字咨询<br/>15分钟价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-chat_price_15" class="form-control" name="row[chat_price_15]" type="number" value="{$row.chat_price_15|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('文字咨询价30分钟')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-chat_price_30" class="form-control" name="row[chat_price_30]" type="number" value="{$row.chat_price_30|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('文字咨询价60分钟')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-chat_price_60" class="form-control" name="row[chat_price_60]" type="number" value="{$row.chat_price_60|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-status" data-rule="required" min="0" class="form-control selectpicker" name="row[status]">
                {foreach name="statusList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.status"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('咨询人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-people_num" class="form-control" name="row[people_num]" type="text" value="{$row.people_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('咨询时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-people_hour" class="form-control" name="row[people_hour]" type="text" value="{$row.people_hour|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('拒绝原因')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reason" class="form-control" name="row[reason]" type="text" placeholder="不通过填写原因" value="{$row.reason|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('精选')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[is_hot]', ['1'=>'是', '0'=>'否'], $row.is_hot, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
